package com.ep.thirdPlatformProject.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("HrmSubCompany")
public class OACompanyEntity extends OABaseTableField {

    @TableId
    private Integer id;

    /**
     * 公司名称
     */
    @TableField("subcompanyname")
    private String companyName;

    /**
     * 公司名称
     */
    @TableField("subcompanycode")
    private String companyCode;


    @TableField("tlevel")
    private String level;

    /**
     * 全路径
     */
    @TableField(exist = false)
    private String fullTraceStr;


    /**
     * 子部门
     */
    @TableField(exist = false)
    private List<OADepartmentEntity> children = new ArrayList<>();
}
